<?php
session_start(); 
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-16">
	<title>Study Planning Advisory Module (SPAM)</title>
	<script src="lib/prototype.js" type="text/javascript"></script>
	<script src="lib/scriptaculous.js" type="text/javascript"></script>
	<script src="src/spam.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="spam.css"/>
	<meta name="author" content="Manuel Ebert">
	<!-- Date: 2009-03-31 -->

</head>
<body>

	<div id="debug" onclick="$('debug').innerHTML = '';">&nbsp;</div>
	
	<div id="menu">
		<h1>Study Planning Advisory Module</h1>
		<ul>
			<li id="menulogout" onclick="Support.logout();" style="display: none;">Log&nbsp;Out</li>
			<li id="menusave" onclick="Support.save();">Save</li>
			<li id="menuload" onclick="Support.load();">Load</li>
			<li id="menuhelp"><a href="help/index.html" target="_blank">Help</a></li>
			<li id="menuprint" onclick="Transcript.open();">Transcript</li>
			<li id="menufeedback" onclick="Message.feedback()">Feedback</li>
			<li id="menuswitch" onclick="Globals.timeline.switchView();">Switch to Timeline</li>
		</ul>
	</div>


	<div id="sidebar">
		<div id="course-selector" class="sidebar-item">
			Add an existing course to your pool...
			<form onSubmit="return false;" method="POST">
				<input type="text" name="course_input" id="course_input"/>
				<div class="autocomplete" id="course_list" style="display:none"></div>
			</form>

			...or add the default courses for your
			<div class="package" onclick="Loader.loadPackage(0);"><img src="bin/box.png" /> First semester</div>
			<div class="package" onclick="Loader.loadPackage(1);"><img src="bin/box.png" />Second semester</div>
			If you can't find a course in our database, you can
			<div class="package one" onclick="Message.newCourse();"><img src="bin/box-one.png" />Enter a new course</div>
		</div>
		<div id="summary" class="sidebar-item">
		</div>
	</div>	
	<div id="help" style="display: none;">
		<div id="addCourseInfo" style="display: none;"></div>
	</div>
	


	<div id="module-box">
		<div id="module-box-0"></div>
		<div id="module-box-1"></div>
		<div id="module-box-2"></div>
	</div>

	<div id="timeline" style="display: none; top: 600px"></div>
	

		<script language="JavaScript">
			Loader.init();
			Loader.loadModules();
			<?php if (isset($_SESSION['uid'])) echo "Support.autoLogin();";?>
		</script>

<form name="postform" id="postform" style="display:hidden;" target="_blank" action="templates/transcript.php" method="POST">
	<input id="postformq" value="" name="data" type="hidden">
</form>
</body>
</html>
